package com.wave.system.domain.bo;

import com.wave.common.core.domain.BaseEntity;
import com.wave.common.core.validate.AddGroup;
import com.wave.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 报警记录业务对象 sys_alarm_record
 *
 * @author wave
 * @date 2024-10-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysAlarmRecordBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 报警时间
     */
    @NotNull(message = "报警时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date alarmTime;

    /**
     * 报警类型
     */
    @NotBlank(message = "报警类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer alarmType;

    /**
     * 报警类型
     */
    @NotBlank(message = "报警类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String alarmContent;


}
